package ooday03;

public class Test {
    public static void main(String[] args) {
       Chick[] a=new Chick[3];
       a[0]=new Chick("只应",2,"蓝色","小米");
       a[1]=new Chick("鸡你",2,"中分","两年办");
       a[2]=new Chick("太美",22,"22","22");
       for (int i=0;i<a.length;i++){
           System.out.print(a[i].name);
       }
       System.out.println();

       Dog[] dogs=new Dog[2];
       dogs[0]=new Dog("大黄",4,"绿色","狗屎","孤僻");
       dogs[1]=new Dog("金发姐",54,"黑色","汉堡","开朗");
       dogs[2]=new Dog("jj",3,"222","2","w");
        for (int i=0;i<dogs.length;i++){
            System.out.print(dogs[i].name);
        }
    }
}
